/*
 * vsconfig.cpp
 *
 *  Created on: Mar 25, 2013
 *      Author: andre
 */

#include "vsconfig.h"
#include <iostream>
#include <string.h>

using namespace std;
VsConfig::VsConfig()
{
	params = new VsParams;
}

VsConfig::~VsConfig()
{
	if(params)
	  delete params;
}

int VsConfig::load(char *path)
{
	strncpy(params->filepath,path,MAX_STRING);
	params->camConf.device = 0;

	params->foregroundConf.motionConfig.enabled = 1;
	params->foregroundConf.motionConfig.numberOfBackGrounds = 1;
	params->foregroundConf.motionConfig.threshold = 10;
	params->foregroundConf.motionConfig.res.width = 160;
	params->foregroundConf.motionConfig.res.height = 120;

	return 0;
}

void VsConfig::print()
{
	cout << "FilePath: " << params->filepath << endl;
	cout << "CamConf:" << endl;
	cout << "Device = " << params->camConf.device << endl;
}


